package com.hnucm.c201901020241.pojo;

import java.util.ArrayList;
import java.util.List;

public class DataBean {
    public Integer imageRes;
    public String imageUrl;
    public String title;
    public int viewType;

    public DataBean(Integer imageRes, String title, int viewType) {
        this.imageRes = imageRes;
        this.title = title;
        this.viewType = viewType;
    }

    public DataBean(String imageUrl, String title, int viewType) {
        this.imageUrl = imageUrl;
        this.title = title;
        this.viewType = viewType;
    }

    public static List<DataBean> getTestData() {
        List<DataBean> list = new ArrayList<>();
        list.add(new DataBean("https://pic.imgdb.cn/item/60c775ee844ef46bb2e909fd.jpg", null, 1));
        list.add(new DataBean("https://pic.imgdb.cn/item/60c775ee844ef46bb2e90a19.jpg", null, 1));
        list.add(new DataBean("https://pic.imgdb.cn/item/60c775ee844ef46bb2e90ed7.jpg", null, 1));
        list.add(new DataBean("https://pic.imgdb.cn/item/60c775ee844ef46bb2e90f03.jpg", null, 1));
        return list;
    }

}
